package com.itheima.sh.f_test01;

public class Car {
    //成员变量
    private String brand;//品牌
    private int price;//价格
    private int mile;//里程
//空参
    public Car() {
    }
//满参
    public Car(String brand, int price, int mile) {
        this.brand = brand;
        this.price = price;
        this.mile = mile;
    }
//set、get方法
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getMile() {
        return mile;
    }

    public void setMile(int mile) {
        this.mile = mile;
    }
}
